
package com.hanhai.zrb.model.project.enums;


public enum UserProjectRefEnums {

		COLLECTION(1,"关注项目"),
		MYPROJECT(2,"我的项目");

	
	private Integer code;
	
	private String value;
	
	public Integer getCode() {
		return code;
	}

	public String getValue() {
		return value;
	}

	private UserProjectRefEnums(int code,String value){
		this.code = code;
		this.value = value;
	}
	
	public static String  getValueByCode(int code){
		for(UserProjectRefEnums status:UserProjectRefEnums.values()){
			if(status.getCode() == code){
				return status.getValue();
			}
		}
		return null;
	}
	
	public static void main(String[] args) {

		for(UserProjectRefEnums status :UserProjectRefEnums.values()){
			System.out.println("code="+status.getCode()+ " values = "+status.getValue());
		}
	}
}
